import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

// 导入 Vuex
const store = new Vuex.Store({
    state: {
        routes: []
    },
    mutations: {
        initRoutes(state,data){
            state.routes = data;
        }
    },
    // 异步执行
    actions: {

    }
})
export default store;
